<?php
class Slider extends CWidget
{
	public $wid = NULL;
	public function init()
	{
		$dir = dirname(__FILE__).'/assets';
		$assets = Yii::app()->getAssetManager()->publish($dir);
		$cs = Yii::app()->getClientScript();
		//$cs->registerScriptFile("{$assets}/jquery.jcarousel.min.js");
		$cs->registerScriptFile("{$assets}/carousel.js");
		$cs->registerCssFile(Yii::app()->theme->baseUrl."/css/jcarosel.css");
		parent::init();
	}
	public function run()
	{
		$this->render('default');
	}
}